package dl.domainmodel.specifier;

import dl.domainmodel.factory.ProductFactory;
import dl.domainmodel.model.Product;
import dl.domainmodel.specifier.iface.ProductSpecifier;

/**
 * Singleton Class
 * @author basanta
 *
 */
public class SpreadSheetProduct implements ProductSpecifier {

	public static final SpreadSheetProduct SPREAD_SHEET_PRODUCT = new SpreadSheetProduct();

	private SpreadSheetProduct() {
	};

	public Product getRightProduct(String name) {
		return Product.newSpreadSheet(name);
	}

	public static final void register() {
		ProductFactory.register("S", SPREAD_SHEET_PRODUCT);
	}

}
